const mongoose = require('mongoose')

/**
 * 文章评论对象
 * @type {mongoose.Schema}
 */
const schema = new mongoose.Schema({
  username: String,
  author: String,
  articleTitle: String,
  articleId: Number,
  createTime: String,
  comment: String
})

module.exports = mongoose.model('comment', schema)
